//
//  GSDKServices.m
//  GameSDK
//
//  Created by Johnny on 2017/8/1.
//  Copyright © 2017年 Johnny. All rights reserved.
//

#import "GSDKServices.h"

static GSDKServices *shared = nil;

@implementation GSDKServices
+ (id)shared {
    static dispatch_once_t pred = 0;
    dispatch_once(&pred, ^{
        if (shared == nil) {
            shared = [[self alloc] init];
            
            shared.manager = [AFHTTPSessionManager manager];
            shared.manager.requestSerializer.timeoutInterval = 15;
            shared.manager.responseSerializer = [AFJSONResponseSerializer serializer];
            shared.manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/html", @"text/plain", nil];
        }
    });
    return shared;
}



@end
